"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.logger = exports.printer = void 0;
const log4js_1 = __importDefault(require("log4js"));
log4js_1.default.configure({
    appenders: {
        console: {
            type: 'console',
            layout: {
                type: 'pattern',
                pattern: `%r - %[[%p]%] %m`
            }
        },
        brightConsole: {
            type: 'console',
            layout: {
                type: 'pattern',
                pattern: `%[%r - [%p] %m%]`
            }
        },
        log: {
            type: 'dateFile',
            filename: 'logs/date.log',
            pattern: 'yyyy-MM-dd',
            keepFileExt: true,
            alwaysIncludePattern: true,
            layout: {
                type: 'pattern',
                pattern: `%h %d{ISO8601} - [%p] %m`
            }
        }
    },
    categories: {
        default: { appenders: ["console"], level: "trace" },
        brightPrint: { appenders: ["brightConsole"], level: "trace" },
        log: { appenders: ["console", "log"], level: "trace" },
        brightLog: { appenders: ["brightConsole", "log"], level: "trace" },
    },
});
exports.printer = log4js_1.default.getLogger('brightPrint');
exports.logger = log4js_1.default.getLogger('log');
